package com.ysj.demo.accompanynetwork.service.impl;

import com.ysj.demo.accompanynetwork.ApiServiceUntil;
import com.ysj.demo.accompanynetwork.bean.FavouritePost;
import com.ysj.demo.accompanynetwork.bean.PartnerPost;
import com.ysj.demo.accompanynetwork.bean.RestRsp;
import com.ysj.demo.accompanynetwork.service.IFollowPostService;
import com.ysj.demo.accompanynetwork.service.bean.PostSearchModel;
import com.ysj.demo.accompanynetwork.service.bean.page.Page;
import retrofit2.Call;
import retrofit2.Response;

public class FollowPostServiceImpl implements IFollowPostService {
//    @Override
//    public Page<FavouritePost> followPosts(PostSearchModel postSearchModel) {
//        Call<RestRsp<Page<FavouritePost>>> call = ApiServiceUntil.getInstance().getmApi().favouritePosts(postSearchModel);
//        try {
//            Response<RestRsp<Page<FavouritePost>>> rspResponse = call.execute();
//            return rspResponse.body().getData();
//        }catch (Exception e){
//            throw new RuntimeException(e);
//        }
//    }
//
//
//    @Override
//    public RestRsp unfollow(PostSearchModel favouritePost) {
//        Call<RestRsp> call =  ApiServiceUntil.getInstance().getmApi().unfollow(favouritePost);
//        try {
//            Response<RestRsp> response = call.execute();
//            return response.body();
//        }catch (Exception e){
//            throw new RuntimeException(e);
//        }
//    }
}
